package day12;

public class Cat extends Pet {
    private String bobby;

    public Cat(String name, int health, int love, String bobby) {
        super(name, health, love);
        this.bobby = bobby;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("爱好:"+this.bobby);
    }

    @Override
    public void eat() {
        System.out.println("猫吃猫粮，喜爱度增加");
        super.love+=10;

    }

    @Override
    public void toHospital() {
        System.out.println("猫去医院");
        super.health+=10;
    }

    public void lumao(){
        System.out.println("撸猫，逗猫");
    }
}
